package com.example.ytr.startproject_104ytr.iface;

import com.example.ytr.startproject_104ytr.bean.WeatherInfo;

/**
 * Created by ytr on 2017/3/14.
 */
//统一不同方式获取天气，定义接口
public interface WeatherListener {
    //成功获取，返回天气信息
    void  onResponse(WeatherInfo weatherinfo);
    //获取失败，返回错误信息
    void onFail(String msg);
}
